Repository navigation
ci: retry every network fetch in the workflow - #921
Merged
Merged
Conversation
The install.sh verify jobs and the Homebrew bootstrap fetched with a plain curl, so one dropped stream failed the job and turned main red. A test over the workflow now fails when a curl step lacks --retry. Fixes #920
A retry after a dropped stream appends the whole body to the part already received when curl writes into a command substitution, so the retried script would run garbled. Each script is written to a file, which a retry truncates, and run from there. The workflow test now requires --retry as its own flag and refuses a retried download fed straight into a shell. Refs #920
…not a file name ending in .sh The workflow guard now sees curl output fed to a shell through a command substitution, a pipe or a process substitution, with or without a path before the shell, and no longer mistakes install.sh in a URL for one. Refs #920
…t real line numbers The pipe form now sees curl piped into sudo bash, env sh or /bin/bash, and a failing workflow test names the physical line a command starts on, not an index into the joined text. Refs #920
Member
Author
|
Review of head 53dcd15 was clean. Three non-blocking notes are left as deliberate No decisions, each checked against the workflow:
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The install.sh verify jobs and the Homebrew bootstrap fetched with a plain
curl -fsSL, so one dropped HTTP/2 stream failed the job and, through the aggregate, turned main red. The three calls now use--retry 6 --retry-delay 5 --retry-all-errors, as the checksum fetches already do.A test over the workflow fails when a
curlstep lacks--retry. It failed on exactly those three lines before the change.Fixes #920